#ifndef		CONTROL_HPP_
# define	CONTROL_HPP_

# include	<iostream>

# include "Buffer.hpp"

class Control
{
public:
typedef enum
  {
    DEFAULT,
    BUF_COMPLETE,
    DISCONNECTED,
    NEW_CONNECTION,
    GENERIC_ERROR
  }                     Err;  

private:
  int	Fd;
  Err	Val;
  Buffer	Buf;

public:
  Control();
  ~Control();

  int	GetFd(void);
  void	SetFd(int fd);

  Err	&GetVal(void);
  void	SetVal(Err val);

  Buffer &GetBuf(void);
};

#endif		/* CONTROL_HPP_ */
